#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
    int max = 0;
    int num = 0;
    while (scanf("%d", &num) != EOF) {
        if (max < num) {
            max = num;
        }
    }
    printf("%d", max);
    return 0;
}